package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Author wpj
 * @Date 2020/8/31
 */
@FieldTypeAnnotation(tableName = "t_u_charitable_skill")
public class UserCharitableSkill extends DataObject {
    @FieldTypeAnnotation(select = true, update = true)
    long userId;
    @FieldTypeAnnotation(update = true, desc = "行善地点")
    int position;
    @FieldTypeAnnotation(update = true, desc = "技能id")
    int skillId;
    @FieldTypeAnnotation(desc = "技能等级")
    int level;

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }

    }
    public void setPosition(int position) {
        if (this.position != position) {
            this.position = position;
            setOp(DataStatus.Update);
        }

    }
    public void setSkillId(int skillId) {
        if (this.skillId != skillId) {
            this.skillId = skillId;
            setOp(DataStatus.Update);
        }

    }
    public void setLevel(int level) {
        if (this.level != level) {
            this.level = level;
            setOp(DataStatus.Update);
        }

    }

    public long getUserId() {
        return userId;
    }

    public int getPosition() {
        return position;
    }

    public int getSkillId() {
        return skillId;
    }

    public int getLevel() {
        return level;
    }
}
